<template>
  <div id="Main">
    <!-- FIXME 缓存不生效 -->
    <router-view v-slot="{ Component }">
      <keep-alive v-if="route.meta.keepAlive" >
        <component :is="Component"  />
      </keep-alive>
      <component :is="Component" v-if="!route.meta.keepAlive" />
    </router-view>
    <TabBar />
  </div>
</template>

<script  setup>
import TabBar from '@/components/TabBar.vue'
import { useRoute } from 'vue-router'
const route = useRoute()
</script>

<style lang='less'>
</style>
